<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	response.setHeader("X-Frame-Options","SAMEORIGIN");
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<script type="text/javascript" src="<%=basePath %>them/jquery-easyui-1.4.2/jquery.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员登陆</title>
    <script type="text/javascript">
    $.ajax({
		url:'<%=basePath %>removeSession',
		type:'post', //数据发送方式
		dataType:'json', //接受数据格式 (这里有很多,常用的有html,xml,js,json)
		
		error: function(){ //失败
			
		},
		success: function(data){ //成功
	
		}
    })
    
    
        $(function(){
           $("#adminPass").keydown(function(e){
               if(e.keyCode==13){
                  fn_login();
               }
           });
        });
        function fn_login(){
           var adminCode= $("#adminCode").val().replace(/\s/g, "");
           var adminPass=$("#adminPass").val().replace(/\s/g, "");
           if(adminCode==""){
              $("#adminCode").css("border-color","#FF0000");
              $("#adminCode").attr("title","用户名为空");
              $("#error").html("用户名为空");  
              return; 
           }
           if(adminPass==""){
           	  $("#adminPass").css("border-color","#FF0000");
           	  $("#adminPass").attr("title","密码为空");
              $("#error").html("密码为空");  
              return; 
           }
           $("#form_login").submit();
        }
        
    </script>
</head>
<body style="margin:0; background:url(<%=basePath %>images/sys/login_bg.gif) repeat-x">
<center>
<table id="__01" width="803" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="7" height="181" width="803" background="<%=basePath %>images/sys/login_01.gif"></td>
	</tr>
	<tr >
		<td>
		</td>
		<td colspan="5" style="background-image:url(<%=basePath %>images/sys/login_03.gif);height:74px;width:523px;padding-left:20px; " valign="middle">
			<table cellpadding="0" cellspacing="0">
			<tr>
			  <td valign="bottom"></td>
			  <td valign="bottom" style="font-family:'黑体';font-size:18px;color:#999999; padding-left:10px; font-weight:bold">企业信息管理系统</td>
			</tr>
			</table>
			
		</td>
		
	</tr>
	<tr>
		<td></td>
		<td  colspan="5" style="background-image:url(<%=basePath %>images/sys/login_06.gif); height:147px;width:523px;" valign="middle" align="center">
			<form id="form_login" action="<%=basePath %>loginMenu" method="post">
			<table>
				  <tr>
				     <td style="font-family:'黑体';font-size:16px;color:#999999; height:50px">
				     	用户名：
				     </td>
				     <td>
				     <input id="adminCode" name="adminCode" type="text" style="border:solid #CCCCCC 1px;height:25px;width:180px; color:#666666"/>
				     </td>
				  </tr>
				  <tr>
				     <td style="font-family:'黑体';font-size:16px;color:#999999; height:50px">密&nbsp;&nbsp;码：</td>
				     <td><input id="adminPass" name="adminPass" type="password" style="border:solid #CCCCCC 1px;height:25px;width:180px; color:#666666"></td>
				  </tr>
			</table>
			</form>
		</td>
		<td></td>
		
	</tr>
	<tr >
		
		<td colspan="2">
			<img src="<%=basePath %>images/sys/login_08.gif" width="320" height="55"></td>
		<td>
			
		</td>
		<td colspan="2">
			<img src="<%=basePath %>images/sys/login_09.gif" width="145" height="55" style="cursor:pointer;" onclick="fn_login()"></td>		
		<td colspan="1">
			<img src="<%=basePath %>images/sys/login_10.gif" width="220" height="55"></td>
		<td colspan="1">
			<img src="<%=basePath %>images/sys/login_11.gif" width="143" height="55"></td>
	</tr>
	<tr>
		<td colspan="7">
			<img src="<%=basePath %>images/sys/login_12.gif" width="803" height="54"></td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="<%=basePath %>images/sys/login_13.gif" width="224" height="80" alt=""></td>
		<td id="error" colspan="3" style="background:url(<%=basePath %>/images/sys/login_14.gif); width:389px; height:80px;color:#FF0000" align="center" valign="middle">
		  ${msg}
		</td>
		<td colspan="2">
			<img src="<%=basePath %>images/sys/login_15.gif" width="190" height="80" alt=""></td>
	</tr>
	<tr>
	<tr>
		<td colspan="7">
			<img src="<%=basePath %>images/sys/login_16.gif" width="803" height="24" alt=""></td>
	</tr>
		
	<tr>
		<td colspan="7" style="color:#666666;font-family:'黑体';font-size:10px" align="center">
			Copyright© 2010-2020，All Rights Reserved  沪ICP备10212032号
		</td>	
	</tr>
</table>
</center>
</body>
</html>